package com.abel;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author xiachao
 * @date 2019-04-16
 */
public class ApplicationStarter {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BaseConfig.class);
        //context.getEnvironment().setRequiredProperties("foo", "bar");
        context.refresh();
        EchoService echoService = context.getBean(EchoServiceImpl.class);
        echoService.say();
        //SpringApplication.run(ApplicationStarter.class);
    }
}
